﻿using System;
using System.ComponentModel;
using System.Xml.Serialization;
using DevExpress.Xpo;
using DevExpress.Xpo.Metadata;
using DevExpress.Xpo.Helpers;
using DevExpress.Data.Filtering;
using DevExpress.ExpressApp;
using DevExpress.Persistent.Base;
using DevExpress.Persistent.BaseImpl;
using DevExpress.Persistent.Validation;
namespace Top.Module.Domain
{
    [DefaultClassOptions]
    [Persistent("TopTaohuaItemPVPair")]
    public class TaohuaItemPVPair : BaseObject
    {
        //begin
        public TaohuaItemPVPair()
        {}
        public TaohuaItemPVPair(Session session) : base(session)
        {}
        public override void AfterConstruction(){base.AfterConstruction();}

        private TaohuaCateProp _TaohuaCateProp;
        public TaohuaCateProp TaohuaCateProp
        {
            get
            {
                return _TaohuaCateProp;
            }
            set
            {
                SetPropertyValue("TaohuaCateProp", ref _TaohuaCateProp, value);
            }
        }
        [Association("TaohuaItemPVPairTaohuaCatePropValues", typeof(TaohuaCatePropValue)), Aggregated]
        public XPCollection<TaohuaCatePropValue> TaohuaCatePropValues
        {
            get
            {
                return GetCollection<TaohuaCatePropValue>("TaohuaCatePropValues");
            }
        }
        private TaohuaItem _TaohuaItem;
        [Association("TaohuaItemTaohuaItemPvPairs", typeof(TaohuaItem))]
        public TaohuaItem TaohuaItem
        {
            get
            {
                return _TaohuaItem;
            }
            set
            {
                SetPropertyValue("TaohuaItem", ref _TaohuaItem, value);
            }
        }
        //end

    }
}
